<?php
defined('BASE_URL')
    || define('BASE_URL', "");
// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development'));

    //Code xu ly lay duong dan Base URL
defined('WEB_BASE_URL')
	|| define('WEB_BASE_URL', $_SERVER['DOCUMENT_ROOT']);
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath('library'),
    get_include_path(),
)));
//echo APPLICATION_PATH . '/../library';
//die();
/** Zend_Application */
require_once 'Zend/Application.php';  

// Create application, bootstrap, and run as
$application = new Zend_Application(
    APPLICATION_ENV, 
    APPLICATION_PATH . '/configs/application.ini'
);

$application->bootstrap()
            ->run();